<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        header{
            background-color: red;line-height: 60px;
        }
        main{
            background-color: green;line-height: 200px;
        }
        footer{
            background-color: blue;line-height: 60px;
        }
        aside{
            background-color: pink;line-height:200px;
        }
    </style>
</head>
<body>
<div id="app">
    <!--container容器 header头 main主体-->
    <el-container>
        <!--height设置高度 默认60px-->
        <el-header height="100">Header</el-header>
        <!--自适应 -->
        <el-main>Main</el-main>
    </el-container>

    <h1>上中下</h1>
    <el-container>
        <el-header>Header</el-header>
        <el-main>Main</el-main>
        <el-footer>Footer</el-footer>
    </el-container>
    <h1>左右</h1>
    <el-container>
        <!--aside 代表侧边栏-->
        <el-aside width="200px">Aside</el-aside>
        <el-main>Main</el-main>
    </el-container>
    <h1>上(左右)</h1>
    <el-container>
        <el-header>Header</el-header>
        <el-container>
            <el-aside width="200px">Aside</el-aside>
            <el-main>Main</el-main>
        </el-container>
    </el-container>
    <h1>上(左右)下</h1>
    <el-container>
        <el-header>Header</el-header>
        <el-container>
            <el-aside width="200px">Aside</el-aside>
            <el-container>
                <el-main>Main</el-main>
                <el-footer>Footer</el-footer>
            </el-container>
        </el-container>
    </el-container>
</div>
</body>
<!--引入Vue框架-->
<script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
   let v = new Vue({
        el: '#app',
        data: function() {
            return {  }
        }
    })
</script>
</html>